home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
snip1292.zip
/
UNIX2DOS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-26
|
267b
|
16 lines
/*
** UNIX2DOS.C - Convert Unix-style pathnames to DOS-style
**
** public domain by Bob Stout
*/
char *unix2dos(char *path)
{
char *p;
for (p = path; *p; ++p)
if ('/' == *p)
*p = '\\';
return path;
}